import React, { useReducer, useEffect } from 'react'
import CommonSteps from '@/common/CommonSteps'
import { stepsConfig, setCurrentDispatch } from './config'
import Form1 from './Form/Form1'

const Modal = () => {
  const [current, setCurrent] = useReducer(setCurrentDispatch, 0)

  useEffect(() => {
    console.log(12312313)
  }, [])

  const stepsProps = {
    options: stepsConfig,
    current,
    component: [Form1],
    setCurrent,
  }

  return (
    <div>
      <CommonSteps {...stepsProps} />
    </div>
  )
}

export default Modal
